const TOKEN_HMTT='TOKEN_HMTT'
const USERINFO_HMTT='USERINFO_HMTT'
export const setToken=(tokenStr)=>
    localStorage.setItem(TOKEN_HMTT,tokenStr)

export const getToken=()=>{
    return localStorage.getItem(TOKEN_HMTT)
}
export const removeToken=()=>
    localStorage.removeItem(TOKEN_HMTT)

export const setUserInfo=(obj)=>
    localStorage.setItem(USERINFO_HMTT,JSON.stringify(obj)||'')

export const getUserInfo=()=>
    JSON.parse(localStorage.getItem(USERINFO_HMTT))

export const removeUserInfo=()=>
    localStorage.removeItem(USERINFO_HMTT)

